﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Management;

namespace System.Peppers.Wmi
{
    /// <summary>
    /// Base class for physical system elements
    /// </summary>
    public class SystemElement : CimSetting
    {
        #region Static
        private static class WmiProperties
        {
            public const string Manufacturer = "Manufacturer",
                Name = "Name";
        }
        #endregion

        internal SystemElement(ManagementObject wmiObject)
            : base(wmiObject)
        { }

        /// <summary>
        /// Name of the organization responsible for producing the physical element.
        /// </summary>
        public string Manufacturer
        {
            get { return Convert.ToString(this[WmiProperties.Manufacturer]); }
        }

        /// <summary>
        /// Label for the object. 
        /// </summary>
        public string Name
        {
            get { return Convert.ToString(this[WmiProperties.Name]); }
        }
    }
}
